<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: BaseSmallScene类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_base_small_scene-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">BaseSmallScene类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>小场景类，用于随机拼合成大场景  
 <a href="class_base_small_scene.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_base_small_scene_8h_source.html">BaseSmallScene.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_base_small_scene_1_1_base_mob_creator.html">BaseMobCreator</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_base_small_scene_1_1_base_object_creator.html">BaseObjectCreator</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aa178694618e1aa5410bd37e3bff72125"><td class="memItemLeft" align="right" valign="top"><a id="aa178694618e1aa5410bd37e3bff72125" name="aa178694618e1aa5410bd37e3bff72125"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Connectivity</b> { <br />
&#160;&#160;<b>BLOCKED</b> = 0
, <b>UP</b> = 1
, <b>DOWN</b> = 2
, <b>LEFT</b> = 4
, <br />
&#160;&#160;<b>RIGHT</b> = 8
, <b>UP_DOWN</b> = UP | DOWN
, <b>UP_DOWN_LEFT</b> = UP_DOWN | LEFT
, <b>UP_DOWN_RIGHT</b> = UP_DOWN | RIGHT
, <br />
&#160;&#160;<b>ALL</b> = UP_DOWN_LEFT | RIGHT
, <b>UP_LEFT</b> = UP | LEFT
, <b>UP_LEFT_RIGHT</b> = UP_LEFT | RIGHT
, <b>UP_RIGHT</b> = UP | RIGHT
, <br />
&#160;&#160;<b>DOWN_LEFT</b> = DOWN | LEFT
, <b>DOWN_LEFT_RIGHT</b> = DOWN_LEFT | RIGHT
, <b>DOWN_RIGHT</b> = DOWN | RIGHT
, <b>LEFT_RIGHT</b> = LEFT | RIGHT
<br />
 }</td></tr>
<tr class="separator:aa178694618e1aa5410bd37e3bff72125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40b08f32371c84591cc1bbf1f1c73a3e"><td class="memItemLeft" align="right" valign="top"><a id="a40b08f32371c84591cc1bbf1f1c73a3e" name="a40b08f32371c84591cc1bbf1f1c73a3e"></a>
typedef std::pair&lt; bool, <a class="el" href="struct_base_small_scene_1_1_base_object_creator.html">BaseObjectCreator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>LayerAndBaseObject</b></td></tr>
<tr class="separator:a40b08f32371c84591cc1bbf1f1c73a3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34f02532b0deb27791d3fd3d25575f0f"><td class="memItemLeft" align="right" valign="top"><a id="a34f02532b0deb27791d3fd3d25575f0f" name="a34f02532b0deb27791d3fd3d25575f0f"></a>
typedef std::vector&lt; LayerAndBaseObject &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>LABOList</b></td></tr>
<tr class="separator:a34f02532b0deb27791d3fd3d25575f0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55dca9d41bf0a900e27bb4934db3d1fd"><td class="memItemLeft" align="right" valign="top"><a id="a55dca9d41bf0a900e27bb4934db3d1fd" name="a55dca9d41bf0a900e27bb4934db3d1fd"></a>
typedef std::vector&lt; <a class="el" href="struct_base_small_scene_1_1_base_mob_creator.html">BaseMobCreator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>BMCList</b></td></tr>
<tr class="separator:a55dca9d41bf0a900e27bb4934db3d1fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b387e5050b12c9048348ad118ebbc1"><td class="memItemLeft" align="right" valign="top"><a id="a76b387e5050b12c9048348ad118ebbc1" name="a76b387e5050b12c9048348ad118ebbc1"></a>
typedef std::vector&lt; std::pair&lt; LABOList, BMCList &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>LBPair</b></td></tr>
<tr class="separator:a76b387e5050b12c9048348ad118ebbc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af0297a15fc186477c54b628e0ef9dea1"><td class="memItemLeft" align="right" valign="top"><a id="af0297a15fc186477c54b628e0ef9dea1" name="af0297a15fc186477c54b628e0ef9dea1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseSmallScene</b> (int width, int height, LABOList frontObjectList, BMCList mobs)</td></tr>
<tr class="separator:af0297a15fc186477c54b628e0ef9dea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f53dec9a4488adbdcf31eff7916709c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_small_scene.html#a1f53dec9a4488adbdcf31eff7916709c">setOffset</a> (int offset_x, int offset_y)</td></tr>
<tr class="memdesc:a1f53dec9a4488adbdcf31eff7916709c"><td class="mdescLeft">&#160;</td><td class="mdescRight">由场景基类调用这个函数设置偏移  <a href="class_base_small_scene.html#a1f53dec9a4488adbdcf31eff7916709c">更多...</a><br /></td></tr>
<tr class="separator:a1f53dec9a4488adbdcf31eff7916709c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a472ac708abe03595a138ce0710ba1cab"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_base_small_scene.html">BaseSmallScene</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_small_scene.html#a472ac708abe03595a138ce0710ba1cab">getSmallScene</a> (BaseSmallScene::Connectivity connectivity, bool isStartRoom=false)</td></tr>
<tr class="memdesc:a472ac708abe03595a138ce0710ba1cab"><td class="mdescLeft">&#160;</td><td class="mdescRight">由连通性获取小场景  <a href="class_base_small_scene.html#a472ac708abe03595a138ce0710ba1cab">更多...</a><br /></td></tr>
<tr class="separator:a472ac708abe03595a138ce0710ba1cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0520c23d353d42fd5263bbec08d6df4c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_base_object.html">BaseObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_small_scene.html#a0520c23d353d42fd5263bbec08d6df4c">createInstanceFromCreator</a> (const LayerAndBaseObject &amp;creator)</td></tr>
<tr class="memdesc:a0520c23d353d42fd5263bbec08d6df4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">由创建器创建新的物体对象，需要自行销毁  <a href="class_base_small_scene.html#a0520c23d353d42fd5263bbec08d6df4c">更多...</a><br /></td></tr>
<tr class="separator:a0520c23d353d42fd5263bbec08d6df4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cd94d43b630f73658e011a67ae1cc84"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_base_mob.html">BaseMob</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_small_scene.html#a6cd94d43b630f73658e011a67ae1cc84">createInstanceFromCreator</a> (const <a class="el" href="struct_base_small_scene_1_1_base_mob_creator.html">BaseMobCreator</a> &amp;creator)</td></tr>
<tr class="memdesc:a6cd94d43b630f73658e011a67ae1cc84"><td class="mdescLeft">&#160;</td><td class="mdescRight">由创建器创建新的怪物对象，需要自行销毁  <a href="class_base_small_scene.html#a6cd94d43b630f73658e011a67ae1cc84">更多...</a><br /></td></tr>
<tr class="separator:a6cd94d43b630f73658e011a67ae1cc84"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ade2fdef710baf5520af679dbcbe7e70d"><td class="memItemLeft" align="right" valign="top"><a id="ade2fdef710baf5520af679dbcbe7e70d" name="ade2fdef710baf5520af679dbcbe7e70d"></a>
LABOList&#160;</td><td class="memItemRight" valign="bottom"><b>objectList</b></td></tr>
<tr class="separator:ade2fdef710baf5520af679dbcbe7e70d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4db7e38fc41a0832a7b4c20c34768851"><td class="memItemLeft" align="right" valign="top"><a id="a4db7e38fc41a0832a7b4c20c34768851" name="a4db7e38fc41a0832a7b4c20c34768851"></a>
BMCList&#160;</td><td class="memItemRight" valign="bottom"><b>mobs</b></td></tr>
<tr class="separator:a4db7e38fc41a0832a7b4c20c34768851"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >小场景类，用于随机拼合成大场景 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a6cd94d43b630f73658e011a67ae1cc84" name="a6cd94d43b630f73658e011a67ae1cc84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cd94d43b630f73658e011a67ae1cc84">&#9670;&nbsp;</a></span>createInstanceFromCreator() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_base_mob.html">BaseMob</a> * BaseSmallScene::createInstanceFromCreator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_base_small_scene_1_1_base_mob_creator.html">BaseMobCreator</a> &amp;&#160;</td>
          <td class="paramname"><em>creator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>由创建器创建新的怪物对象，需要自行销毁 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">creator</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a0520c23d353d42fd5263bbec08d6df4c" name="a0520c23d353d42fd5263bbec08d6df4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0520c23d353d42fd5263bbec08d6df4c">&#9670;&nbsp;</a></span>createInstanceFromCreator() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_base_object.html">BaseObject</a> * BaseSmallScene::createInstanceFromCreator </td>
          <td>(</td>
          <td class="paramtype">const LayerAndBaseObject &amp;&#160;</td>
          <td class="paramname"><em>creator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>由创建器创建新的物体对象，需要自行销毁 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">creator</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a472ac708abe03595a138ce0710ba1cab" name="a472ac708abe03595a138ce0710ba1cab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a472ac708abe03595a138ce0710ba1cab">&#9670;&nbsp;</a></span>getSmallScene()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_base_small_scene.html">BaseSmallScene</a> BaseSmallScene::getSmallScene </td>
          <td>(</td>
          <td class="paramtype">BaseSmallScene::Connectivity&#160;</td>
          <td class="paramname"><em>connectivity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isStartRoom</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>由连通性获取小场景 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">connectivity</td><td>连通性枚举 </td></tr>
    <tr><td class="paramname">isStartRoom</td><td>是否为开始房间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_small_scene_a472ac708abe03595a138ce0710ba1cab_cgraph.png" border="0" usemap="#aclass_base_small_scene_a472ac708abe03595a138ce0710ba1cab_cgraph" alt=""/></div>
<map name="aclass_base_small_scene_a472ac708abe03595a138ce0710ba1cab_cgraph" id="aclass_base_small_scene_a472ac708abe03595a138ce0710ba1cab_cgraph">
<area shape="rect" title="由连通性获取小场景" alt="" coords="5,27,187,69"/>
<area shape="rect" href="class_json_parser.html#a1486f8c95239e93a3c5591943139ecb4" title="从固定的文件读取场景配置" alt="" coords="235,35,412,61"/>
<area shape="rect" href="class_json_parser.html#ac8a4da85f0cfe8605ef222e35960f997" title="将json对象解析为怪物创建器对象" alt="" coords="460,5,675,32"/>
<area shape="rect" href="class_json_parser.html#a4871586d9d3eb5d205cea8ffb65c9691" title="将json对象解析为物体创建器对象" alt="" coords="472,57,663,98"/>
</map>
</div>

</div>
</div>
<a id="a1f53dec9a4488adbdcf31eff7916709c" name="a1f53dec9a4488adbdcf31eff7916709c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f53dec9a4488adbdcf31eff7916709c">&#9670;&nbsp;</a></span>setOffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseSmallScene::setOffset </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>offset_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>offset_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>由场景基类调用这个函数设置偏移 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset_x</td><td></td></tr>
    <tr><td class="paramname">offset_y</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/<a class="el" href="_base_small_scene_8h_source.html">BaseSmallScene.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/BaseSmallScene.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
